package com.haoyeteng.sxbd.modular.business.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.haoyeteng.sxbd.modular.business.model.Product;
import com.haoyeteng.sxbd.modular.business.dao.ProductMapper;
import com.haoyeteng.sxbd.modular.business.service.IProductService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品表 服务实现类
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-06-20
 */
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements IProductService {

    /**
     * * 查询列表
     * @param page 分页条件
     * @param productName 产品名
     * @return list<map>
     */
    @Override
    public List<Map<String, Object>> selectProducts(Page<Product> page, String productName) {
        return this.baseMapper.selectProducts(page, productName);
    }

}
